import re
result = []

def test(start, end):
    for i in range(start, end):
        if i % 7 == 0 and i % 5 != 0:
            result.append(str(i))

# 阶乘
def factorial(data):
    if data > 1:
        return data * factorial(data - 1)
    else:
        return 1

def dictionary_test(data):
    dic = {}
    for x in range(1, data + 1):
        dic[x] = x * x

    return dic

def array_test(data):
    '''测试数组和元祖'''
    temp = data.split(",")
    k = re.findall(r'[0-9]+', data)
    t = tuple(k)
    print(k)
    print(t)

class Demo:
    def __init__(self):
        self.strInfo = "default"
    def get_string(self):
        input_str = input("输入")
        self.strInfo = input_str
        print("输入："+input_str)

    def output_str(self):
        print("大写字母："+self.strInfo.upper())
if __name__ == "__main__":
    # test(1, 300)
    # print(','.join(result))
    # print(result)
    # print(factorial(8))
    # print(dictionary_test(3))
    # array_test("12年,23时")
    de = Demo()
    de.output_str()
    de.get_string()
    de.output_str()
